//
//  chatContentView.m
//  SoundPill
//
//  Created by 宋旭东 on 16/3/7.
//  Copyright © 2016年 宋旭东. All rights reserved.
//

#import "chatContentView.h"

@implementation chatContentView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.contentLable = [[UILabel alloc] initWithFrame:CGRectZero];
        _contentLable.lineBreakMode = NSLineBreakByWordWrapping;
        _contentLable.numberOfLines = 0;
        _contentLable.font = [UIFont systemFontOfSize:15];
        [self addSubview:_contentLable];
    }
    return self;
}
- (void)setFrame:(CGRect)frame withContent:(NSString *)content
{
    [super setFrame:frame];
    _contentLable.frame = CGRectMake(10, 10, frame.size.width - 20, frame.size.height - 20);
    _contentLable.text = content;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
